#include <bits/stdc++.h>

using namespace std;
#define gc() (ibo_ == ied_ ? (ied_ = buf + fread(ibo_ = buf, 1, 1 << 20, stdin), ibo_ == ied_ ? EOF : *ibo_++) : *ibo_++)
#define read() ({ int x = 0, f = 1; char c = gc(); while(c < '0' || c > '9') { if (c == '-') f = -1; c = gc();} while(c >= '0' && c <= '9') x = x * 10 + (c & 15), c = gc(); f * x; })
char buf[1 << 20], puf[1 << 20], *_p_ = puf, *ibo_, *ied_;
#define pr(x) (_p_ - puf == 1 << 20 ? (fwrite(puf, 1, 1 << 20, stdout), _p_ = puf) : 0, *_p_++ = x)
int print(long long x) { return x <= 9 ? pr(x + '0') : (print(x / 10), pr(x % 10 + '0')); }
#define int long long

const int N = 1000010;

int t;
int n, q;
int ai[N], sum[N];


 struct ListNode {
    int val;
    ListNode *next;
    ListNode() : val(0), next(nullptr) {}
    ListNode(int x) : val(x), next(nullptr) {}
    ListNode(int x, ListNode *next) : val(x), next(next) {}
};

class Solution {
public:
    ListNode* mergeTwoLists(ListNode* list1, ListNode* list2) {
        ListNode* Pt = new ListNode(), *PtHead = new ListNode();
        if (list1->val > list2->val) {
            PtHead = Pt = new ListNode(list2->val, list1);
            list2 = list2->next;
        } else {
            PtHead = Pt = new ListNode(list1->val, list2);
            list1 = list1->next;
        }
        while (list1 && list2) {
            if (list1->val > list2->val) {
                Pt->next = list2;
                list2 = list2->next;
            } else {
                Pt->next = list1;
                list1 = list1->next;
            }
            Pt = Pt->next;
            ListNode* copyP = PtHead;
            while (copyP) cout << copyP->val << " ", copyP = copyP->next; cout << endl;
        }
        if (list1) Pt->next = list1;
        else Pt->next = list2;
        ListNode* copyP = PtHead;
        while (copyP) cout << copyP->val << " ", copyP = copyP->next; cout << endl;
        return PtHead;
    }
}A;
signed main() {
    int a = 1000;
    try {
        int k;
        cin >> k;
        a = a / k;
    } catch (...){
        cout << "e.what()" << endl;
    }
    system("pause");
    return 0;
}
